package chapter3.No3_4_类InheritableThreadLocal的使用.demo2;

/**
 * Created by Administrator on 2016/11/20.
 */
public class MyInheritableThreadLocal extends InheritableThreadLocal {
    @Override
    protected Object initialValue() {
        return System.currentTimeMillis();
    }

    @Override
    protected Object childValue(Object parentValue) {
        return parentValue + " 子类新加的值" + System.currentTimeMillis();
    }
}
